#include "PictureEngine.h"

PictureEngine::PictureEngine(QObject * parent) :
   IF_PictureEngineInterface( parent)
{
}

PictureEngine::~PictureEngine()
{
}


void PictureEngine::setCurrentSource(const QPixmap & pixmap)
{
   m_pixmap = pixmap;
   m_videoWidget.setCurrentPixmap( pixmap);
   emit currentSourceChanged( pixmap);
}


void PictureEngine::show()
{
   m_videoWidget.smartShow();
   emit pictureShown();
}

void PictureEngine::hide()
{
   m_videoWidget.hide();
   emit pictureHidden();
}
